<% 
	if (session.getAttribute("admin") == null) {
		response.sendRedirect("/kaola/admin/login.jsp");
	}
%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'manage.jsp' starting page</title>
</head>

<body>
	<p>管理员账号：${admin.account}</p>
	<% 
		if (session.getAttribute("admin") != null) {
	%>
	<a href="/kaola/manage/quit">quit</a>
	<%
		}
	%>
	<ul>
		<li>管理分类
			<ul>
				<li>
					<a href="/kaola/categories/level1new">增加一级分类</a>
				</li>
				<li>
					<a href="/kaola/categories/level2new">增加二级分类</a>
				</li>
				<li>
					<a href="/kaola/categories/level3new">增加三级分类</a>	
				</li>
				<li>
					<a href="/kaola/categories/level1list">查看所有分类</a>
				</li>
			</ul>
		</li>
	</ul>
	
	<ul>
		<li>管理商品
			<ul>
				<li>
					<a href="/kaola/products/new">增加商品</a>
				</li>
				<li>
					<a href="/kaola/categories/level1list">查看商品</a>
				</li>
			</ul>
		</li>
	</ul>
</body>
</html>
